import 'package:flutter/material.dart';
import '../services/ScreenAdatper.dart';
 
 
class JdButtoon extends StatelessWidget {
  Color color;
  String text;
  Object onTap;
  JdButtoon({Key key,this.color,this.text,this.onTap = null}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.center,
      child:Container(
          margin: EdgeInsets.all(5),
          width: double.infinity,
          child: RaisedButton(
            child: Text(this.text),
            color: this.color,
            textColor: Colors.white,
            shape: RoundedRectangleBorder(
              borderRadius: BorderRadius.circular(8)
            ),
            onPressed: this.onTap
          ),
        ),
    );
  }
}